﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace InsideDL.MISControl
{

    public enum ButtonActionMode
    {
        Execute, Exit
    }

    public partial class ucExecute : UserControl
    {

        protected ButtonActionMode buttonActionMode = ButtonActionMode.Execute;

        [Category("MISWinAPP")]
        public ButtonActionMode ButtonActMode
        {
            set
            {
                buttonActionMode = value;
            }
            get
            {
                return buttonActionMode;
            }
        }

        public EventHandler ExecuteClick;

        public string Caption
        {
            set
            {
                button1.Text = value;
            }
            get
            {
                return button1.Text;
            }
        }

        public ucExecute()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (ExecuteClick != null)
            {
                ExecuteClick(sender, e);
            }
        }
    }
}
